package com.jari.lg.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ViolationTopLocationDayExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ViolationTopLocationDayExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andEpolicecodeIsNull() {
            addCriterion("epoliceCode is null");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeIsNotNull() {
            addCriterion("epoliceCode is not null");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeEqualTo(String value) {
            addCriterion("epoliceCode =", value, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeNotEqualTo(String value) {
            addCriterion("epoliceCode <>", value, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeGreaterThan(String value) {
            addCriterion("epoliceCode >", value, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeGreaterThanOrEqualTo(String value) {
            addCriterion("epoliceCode >=", value, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeLessThan(String value) {
            addCriterion("epoliceCode <", value, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeLessThanOrEqualTo(String value) {
            addCriterion("epoliceCode <=", value, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeLike(String value) {
            addCriterion("epoliceCode like", value, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeNotLike(String value) {
            addCriterion("epoliceCode not like", value, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeIn(List<String> values) {
            addCriterion("epoliceCode in", values, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeNotIn(List<String> values) {
            addCriterion("epoliceCode not in", values, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeBetween(String value1, String value2) {
            addCriterion("epoliceCode between", value1, value2, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andEpolicecodeNotBetween(String value1, String value2) {
            addCriterion("epoliceCode not between", value1, value2, "epolicecode");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(Date value) {
            addCriterionForJDBCDate("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(Date value) {
            addCriterionForJDBCDate("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(Date value) {
            addCriterionForJDBCDate("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<Date> values) {
            addCriterionForJDBCDate("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andEpolicenameIsNull() {
            addCriterion("epoliceName is null");
            return (Criteria) this;
        }

        public Criteria andEpolicenameIsNotNull() {
            addCriterion("epoliceName is not null");
            return (Criteria) this;
        }

        public Criteria andEpolicenameEqualTo(String value) {
            addCriterion("epoliceName =", value, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameNotEqualTo(String value) {
            addCriterion("epoliceName <>", value, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameGreaterThan(String value) {
            addCriterion("epoliceName >", value, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameGreaterThanOrEqualTo(String value) {
            addCriterion("epoliceName >=", value, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameLessThan(String value) {
            addCriterion("epoliceName <", value, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameLessThanOrEqualTo(String value) {
            addCriterion("epoliceName <=", value, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameLike(String value) {
            addCriterion("epoliceName like", value, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameNotLike(String value) {
            addCriterion("epoliceName not like", value, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameIn(List<String> values) {
            addCriterion("epoliceName in", values, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameNotIn(List<String> values) {
            addCriterion("epoliceName not in", values, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameBetween(String value1, String value2) {
            addCriterion("epoliceName between", value1, value2, "epolicename");
            return (Criteria) this;
        }

        public Criteria andEpolicenameNotBetween(String value1, String value2) {
            addCriterion("epoliceName not between", value1, value2, "epolicename");
            return (Criteria) this;
        }

        public Criteria andSumIsNull() {
            addCriterion("sum is null");
            return (Criteria) this;
        }

        public Criteria andSumIsNotNull() {
            addCriterion("sum is not null");
            return (Criteria) this;
        }

        public Criteria andSumEqualTo(Integer value) {
            addCriterion("sum =", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumNotEqualTo(Integer value) {
            addCriterion("sum <>", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumGreaterThan(Integer value) {
            addCriterion("sum >", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumGreaterThanOrEqualTo(Integer value) {
            addCriterion("sum >=", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumLessThan(Integer value) {
            addCriterion("sum <", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumLessThanOrEqualTo(Integer value) {
            addCriterion("sum <=", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumIn(List<Integer> values) {
            addCriterion("sum in", values, "sum");
            return (Criteria) this;
        }

        public Criteria andSumNotIn(List<Integer> values) {
            addCriterion("sum not in", values, "sum");
            return (Criteria) this;
        }

        public Criteria andSumBetween(Integer value1, Integer value2) {
            addCriterion("sum between", value1, value2, "sum");
            return (Criteria) this;
        }

        public Criteria andSumNotBetween(Integer value1, Integer value2) {
            addCriterion("sum not between", value1, value2, "sum");
            return (Criteria) this;
        }

        public Criteria andTypestrIsNull() {
            addCriterion("typestr is null");
            return (Criteria) this;
        }

        public Criteria andTypestrIsNotNull() {
            addCriterion("typestr is not null");
            return (Criteria) this;
        }

        public Criteria andTypestrEqualTo(String value) {
            addCriterion("typestr =", value, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrNotEqualTo(String value) {
            addCriterion("typestr <>", value, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrGreaterThan(String value) {
            addCriterion("typestr >", value, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrGreaterThanOrEqualTo(String value) {
            addCriterion("typestr >=", value, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrLessThan(String value) {
            addCriterion("typestr <", value, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrLessThanOrEqualTo(String value) {
            addCriterion("typestr <=", value, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrLike(String value) {
            addCriterion("typestr like", value, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrNotLike(String value) {
            addCriterion("typestr not like", value, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrIn(List<String> values) {
            addCriterion("typestr in", values, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrNotIn(List<String> values) {
            addCriterion("typestr not in", values, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrBetween(String value1, String value2) {
            addCriterion("typestr between", value1, value2, "typestr");
            return (Criteria) this;
        }

        public Criteria andTypestrNotBetween(String value1, String value2) {
            addCriterion("typestr not between", value1, value2, "typestr");
            return (Criteria) this;
        }

        public Criteria andNumstrIsNull() {
            addCriterion("numstr is null");
            return (Criteria) this;
        }

        public Criteria andNumstrIsNotNull() {
            addCriterion("numstr is not null");
            return (Criteria) this;
        }

        public Criteria andNumstrEqualTo(String value) {
            addCriterion("numstr =", value, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrNotEqualTo(String value) {
            addCriterion("numstr <>", value, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrGreaterThan(String value) {
            addCriterion("numstr >", value, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrGreaterThanOrEqualTo(String value) {
            addCriterion("numstr >=", value, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrLessThan(String value) {
            addCriterion("numstr <", value, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrLessThanOrEqualTo(String value) {
            addCriterion("numstr <=", value, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrLike(String value) {
            addCriterion("numstr like", value, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrNotLike(String value) {
            addCriterion("numstr not like", value, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrIn(List<String> values) {
            addCriterion("numstr in", values, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrNotIn(List<String> values) {
            addCriterion("numstr not in", values, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrBetween(String value1, String value2) {
            addCriterion("numstr between", value1, value2, "numstr");
            return (Criteria) this;
        }

        public Criteria andNumstrNotBetween(String value1, String value2) {
            addCriterion("numstr not between", value1, value2, "numstr");
            return (Criteria) this;
        }

        public Criteria andGmtcreateIsNull() {
            addCriterion("gmtCreate is null");
            return (Criteria) this;
        }

        public Criteria andGmtcreateIsNotNull() {
            addCriterion("gmtCreate is not null");
            return (Criteria) this;
        }

        public Criteria andGmtcreateEqualTo(Date value) {
            addCriterion("gmtCreate =", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateNotEqualTo(Date value) {
            addCriterion("gmtCreate <>", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateGreaterThan(Date value) {
            addCriterion("gmtCreate >", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateGreaterThanOrEqualTo(Date value) {
            addCriterion("gmtCreate >=", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateLessThan(Date value) {
            addCriterion("gmtCreate <", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateLessThanOrEqualTo(Date value) {
            addCriterion("gmtCreate <=", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateIn(List<Date> values) {
            addCriterion("gmtCreate in", values, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateNotIn(List<Date> values) {
            addCriterion("gmtCreate not in", values, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateBetween(Date value1, Date value2) {
            addCriterion("gmtCreate between", value1, value2, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateNotBetween(Date value1, Date value2) {
            addCriterion("gmtCreate not between", value1, value2, "gmtcreate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}